<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-06-23
 * Time: 11:47
 */

namespace app\api\service\staff;


use LinCmsTp5\validate\BaseValidate;

class CheckStaff extends BaseValidate
{
    protected $rule = [
        'user_id' => 'require|isPositiveInteger',
        'name' => 'require|max:20',
        'phone' => 'require|mobile',
        'lin_user_id' => 'require|isPositiveInteger',
    ];

    protected $message = [
        'user_id' => '请重新选择用户',
        'name' => '请输入取送员姓名且长度不大于20',
        'phone' => '请输入正确的取送员电话'
    ];
}